upregister[learnedlong][style=sansbold, textstyle=slanted, n=2,
pagenumber=yes, indicator=no]
%
\define[1]\learnedis{%
\txt{} \getvalue{#1}
\learnedshort{#1}
\learnedlong{#1}
}
\define[1]\learned{%
\textreference[textref#1]{\expanded{\currentstructuretitle}}
\refer
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2,
pagenumber=yes, indicator=no]
%
\define[1]\learnedis{%
\txt{} \getvalue{#1}
\learnedshort{#1}
\learnedlong{#1}
}
\define[1]\learned{%
\textreference[textref#1]{\expanded{\currentstructuretitle}}
\refer
]\learnedis{%
\txt{} \getvalue{#1}
\learnedshort{#1}
\learnedlong{#1}
}
\define[1]\learned{%
\textreference[textref#1]{\expanded{\currentstructuretitle}}
\reference[ref#1]{}%
%
\learnedshort{#1}
\learnedlong{\getvalue{#1}}
}
\starttext
\learned{W3}
\startchapter[title
o link to, e.g.
\startchapter[title={My chapter},reference=chap:first] or
\chapter[chap:first]{My chapter}
This works the same for other structure levels. I’m not sure about
bibliography, but I think you must use the bib entry code.
You can also set anchors manually using \textreference and
manually using \textreference and \pagereference.
Then you can use \in[chap:first], \about[chap:first] or \at[chap:first].
For external links, you use \goto (it’s a bit extensive).
Please look up the syntax reference in the wiki.
Hraban
all through the wiki, thinking this was a basic feature, but
couldn't get anything to work. I even tried my own custom macros, see below,
but strangely, it won't give me the correct title, it tells me the title of the
current chapter, instead of the title in which the reference was placed:
\define[1]\
sic feature, but
couldn't get anything to work. I even tried my own custom macros, see below,
but strangely, it won't give me the correct title, it tells me the title of the
current chapter, instead of the title in which the reference was placed:
\define[1]\dropref{% \textreference[#1]{\e
empty,
pagestate=start,
]
\def\doublepagefig{\dodoubleempty\doDoublePagefig}
\def\doDoublePagefig[#1][#2]#3#4{
\startfullpagemakeup
\setlayer[bgpicleft]{\textreference[#1]{}%
\clip[
hoffset=0mm, voffset=0mm,
> Am 2019-09-01 um 06:36 schrieb Jon Wong :
>
> Hi all,
>
> I’m having trouble getting \textreference to show up.
See https://wiki.contextgarden.net/Command/textreference:
"Creates an **invisible**, referencable anchor text on the page"
Greetlings, Hraban
---
Hi all,
I’m having trouble getting \textreference to show up.
MWE:
\starttext
\textreference[bleh]{\bf Ref One}.
\page
\textreference[blah]{\bf Ref Two}.
\at[bleh].
\at[blah].
\stoptext
Regards
Jon
> On Aug 28, 2019, at 7:40 PM, Jon Wong wrote:
>
> Hi all,
>
>
> Am 2019-08-28 um 13:40 schrieb Jon Wong :
>
> Hi all,
>
> Any way to do hypertarget and hyperlink in ConTeXt?
>
> From https://www.contextgarden.net/Command/textreference: I see that the name
> of the anchor is also the displayed text (“houses”).
\setupinteraction[s
Hi all,
Any way to do hypertarget and hyperlink in ConTeXt?
From https://www.contextgarden.net/Command/textreference:
<https://www.contextgarden.net/Command/textreference:> I see that the name of
the anchor is also the displayed text (“houses”).
Regar
]\textreference[pic1]{\getnumber[figure]}\in[pic1]}
{figure 2} {...similar...}
{figure 3} {...similar...}
\stopcombination
\stopplacefigure
and then
\in[pic1]
in the body of the text, which looked very promising; the trouble is that for
some reason that i do not understand, the \in[pic1] in the label
nal stage of completing a book project, I was wondering how to
>>> automatize cross references to chapters. I’ve already figured out how to
>>> refer to pages (using “\at[REFERENCE]”), but how is this done with
>>> chapters? I’m apparently too simple-minded to understand
omatize cross references to chapters. I’ve already figured out how to
>> refer to pages (using “\at[REFERENCE]”), but how is this done with chapters?
>> I’m apparently too simple-minded to understand the manual (and I don’t
>> understand the differences between \reference, \text
out how to
>> refer to pages (using “\at[REFERENCE]”), but how is this done with chapters?
>> I’m apparently too simple-minded to understand the manual (and I don’t
>> understand the differences between \reference, \textreference, \in, \about).
>
> When you use \startchapter:
&g
? I’m
apparently too simple-minded to understand the manual (and I don’t understand
the differences between \reference, \textreference, \in, \about).
When you use \chapter:
\starttext
\chapter[sec:knuth]{Knuth}
\samplefile{knuth}
See \in{chapter}[sec:zapf] at \at{page}[sec:zapf].
\chapter
the manual (and I don’t understand
the differences between \reference, \textreference, \in, \about).
Robert
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
ge as current
> > >\def\myClipHeight{\ctxlua{ctxClipHeight("#3", \Resolution)}}
> > >\def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}}
> > >% image
> > >\setlayerframed[bglayer][%
> > > frame=off,
> > >
xtwidth,
height=\myClipHeight,
hoffset=0mm,
voffset=0mm, % i.e. clip bottom! TODO: options!
]{\externalfigure[#3][width=\textwidth]}
}
\textreference[pre#1]{\myImgHeight}
% caption
\setlayerframed[bglayer][%
frame=off,
offset=overlay,
linecorrectio
ight{\ctxlua{ctxClipHeight("#3", \Resolution)}}
> \def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}}
> % image
> \setlayerframed[bglayer][%
> frame=off,
> offset=overlay,
> x=21mm,
> y=\mystartY,
> height=\myClipHeight,
> wid
\clip[
width=\textwidth,
height=\myClipHeight,
hoffset=0mm,
voffset=0mm, % i.e. clip bottom! TODO: options!
]{\externalfigure[#3][width=\textwidth]}
}
\textreference[pre#1]{\myImgHeight}
% caption
\setlayerframed[bglayer][%
frame=off,
offset=overlay,
e
}%
\vfill
}
\textreference[myref]{blblbla} \textreference[myref2]{blub}
\about[myref]
\scale[factor=30]{\about[myref]}
\scale[factor=30]{\about[myref2]}
\scale[width=4cm]{\about[myref]}
\scale[width=4cm]{\about[myref2]}
\rotate[rotation=45,offset=2pt]{\about[myref]}
\stoptext
--
Ulrik
On 7/13/2014 7:59 PM, Herbert Voss wrote:
I thought that \textreference will print its text (Foo) in
difference to \reference. With current minimal I can see no
difference between both.
\starttext
\textreference[foo]{Foo}
\reference[bar]{Bar}
\about[foo] and \about[bar] \atpage[bar]
\stoptext
I thought that \textreference will print its text (Foo) in
difference to \reference. With current minimal I can see no
difference between both.
\starttext
\textreference[foo]{Foo}
\reference[bar]{Bar}
\about[foo] and \about[bar] \atpage[bar]
\stoptext
Herbert
references
in the text can be set with the \reference, \textreference or \pagereference
commands.
\setupexternalfigures[location=default]
\setupinteraction[state=start]
\starttext
\startchapter[referemce=sec:sectionlabel,title=Dummy chapter]
\input knuth
\startplacefigure[reference=fig:figurelabel
Dear list members,
I use ConTeXt MkIV to typeset the protocol (minutes) of a meeting. In my
macros, I use \textreference and \about to reuse the text from the agenda
list in the actual sections. It's like the regular table of contents,
but reversed (see the below MWE). I do it like
reference\textreference[check]{check}))
\stopcomponent
\stopbuffer
\savebuffer[list=component,file=test-component.tex,prefix=no]
\setupinteraction [state=start]
\starttext
there: \in[check]
% \start
\component test-component
% \stop
there: \in[check]
\page
\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
The error shows itself in the line:
Should be 1/1: \in[test]
As \in[test] gives me 1/3 instead of 1/1. (1 was the number assigned to
the first paragraph - 3 is the acutal number).
Can
of the full example below:
\doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
The error shows itself in the line:
Should be 1/1: \in[test]
As \in[test] gives me 1/3 instead of 1/1. (1 was the number assigned
\markParagraph[#1]%
{\getrawparameters[Paragraph][mark=,#1]%
\incrementcounter[ParagraphCounter]%
\expanded{\textreference[\Paragraphmark]{\convertedcounter[ParagraphCounter]}}}
\protect
\starttext
\markParagraph[mark=aaa]
\input tufte
\markParagraph[mark=bbb]
\input
On 11-5-2012 16:59, Peter Schorsch wrote:
\unprotect
\definecounter[ParagraphCounter][way=bysection,prefix=no]
\def\markParagraph[#1]%
{\getrawparameters[Paragraph][mark=,#1]%
\incrementcounter[ParagraphCounter]%
\expanded{\textreference[\Paragraphmark
with the \reference, \textreference and
\pagereference commands and \in and \at to show the values.
I made a example where you can see that the second shows the counter and page
with \in and \at but for the other reference commands you have to use
\getreference to show the values
working either!
There are indeed problems with the \reference, \textreference and
\pagereference commands and \in and \at to show the values.
some grouping issue ... new beta
-
Hans Hagen
. Page
referencing between external documents isn't working either!
There are indeed problems with the \reference, \textreference and
\pagereference commands and \in and \at to show the values.
some grouping issue ... new beta
Thanks for the fast fix and beta.
What need to be improved
referencing between external documents isn't working either!
There are indeed problems with the \reference, \textreference and
\pagereference commands and \in and \at to show the values.
some grouping issue ... new beta
to a section or enumeration you get the number of
the section or enumeration but when you refer to something without
a number you get the stored text etc., e.g. \textreference[foo]{This is the
text!}
print “This is the text!”.
For enumerations, floats etc. you can use the section number as prefix
On 21-11-2011 20:36, Hans van der Meer wrote:
There is something with creating hyperlinks I do not understand.
Did \setupinteraction[state=start]
Situation-1: \placefigure[][reftofigure].. gives me with \in.. a clickable link.
Situation-2: \pagereference[reftoplace] (or \textreference
There is something with creating hyperlinks I do not understand.
Did \setupinteraction[state=start]
Situation-1: \placefigure[][reftofigure].. gives me with \in.. a clickable link.
Situation-2: \pagereference[reftoplace] (or \textreference, \reference} do give
me a link-colored text with \in{txt
\useURL[google][http://www.google.com/][][Google] \from[google]
\textreference[txt:ref]{some text} \in[txt:ref] % OK
\goto{Google}[url(http://www.google.com/)]
\stoptext
in next beta
Thanks Hans, but now the text reference is *not* wrapped in xhml:a-tags.
at.href = # .. gsub
On 21-10-2011 11:27, Andreas Harder wrote:
\setupinteraction[state=start]
\setupbackend[export=yes,xhtml=yes,css=export-example.css]
\starttext
\useURL[google][http://www.google.com/][][Google] \from[google]
\textreference[txt:ref]{some text} \in[txt:ref] % OK
\goto{Google}[url(http
]
\textreference[txt:ref]{some text} \in[txt:ref] % OK
\goto{Google}[url(http://www.google.com/)]
\stoptext
I would appreciate any tips.
Regards
Andreas
___
If your question is of interest to others as well, please add
[ParagraphNumber]}%
\doifsomething\Paragraphheading{\inouter{\Paragraphheading}}%
\doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
\ignorespaces}
\unexpanded\def\stopParagraph
\getnumber[ParagraphNumber]}%
\doifsomething\Paragraphheading{\inouter{\Paragraphheading}}%
\doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
\ignorespaces}
\unexpanded\def\stopParagraph
{\blank[medium]}
% Setup
on Page \ref[p][label:1].
\stoptext
in strc-ref.mkiv patch
\unexpanded\def\textreference {\dosingleargument\dotextreference}
\unexpanded\def\pagereference {\dosingleargument\dopagereference}
\unexpanded\def\reference {\dosingleargument\doreference}
\unexpanded\def\setreference
-ref.mkiv patch
\unexpanded\def\textreference {\dosingleargument\dotextreference}
\unexpanded\def\pagereference {\dosingleargument\dopagereference}
\unexpanded\def\reference {\dosingleargument\doreference}
\unexpanded\def\setreference {\dodoubleargument\dosetreference }
(make them unexpandable
Hello all,
I have a problem with referencing from a line numbered text.
In page-lin.mkiv I've found the \inline-command, but I can't make use
of it:
\starttext
\startlinenumbering
Hello \textreference[ref]{} World!
\stoplinenumbering
\inline[ref] % output: line ??
\stoptext
What I really
\setupinteraction[focus=standard] has no effect, I get the usual fit
page mode instead. Works fine with MkII.
Example:
\setupinteraction[state=start,focus=standard]
\starttext
\goto{Knuth}[knuth]
\page
\input knuth \textreference[knuth]{}
\stoptext
A side note, I'm just wondering why standard
Khaled Hosny wrote:
\setupinteraction[focus=standard] has no effect, I get the usual fit
page mode instead. Works fine with MkII.
Example:
\setupinteraction[state=start,focus=standard]
\starttext
\goto{Knuth}[knuth]
\page
\input knuth \textreference[knuth]{}
\stoptext
in mkiv hypherlinks
knuth \textreference[knuth]{}
\stoptext
in mkiv hypherlinks (annotations in general) are implemented rather
different thamn in mkii
in mkii the mechanism evolved from dvi based hyperlinks (dviwindo) and
had a couple of features not supported by pdftex by default
in mkiv all is handled
Xan wrote:
Hi,
perhaps a stupid question, but I can't find it.
How can I define a reference in the plain text.
For example something like:
Hello this is the \reference[here] text
and do something like
\in[here]
\pagereference[xxx]
\textreference[xxx]{...}
\reference[xxx]{xxx
{\textreference[#1]{\MyMarginalNote}}}%
#2}}
\setupinmargin[stack=yes]
\starttext
bla bla bla \mnote{xxx} bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla
bla bla bla \mnote[foo]{xxx} bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla
note).
i'm not sure what accent you mean, anyhow,
\def\domnote[#1]#2%
{\doglobal\increment\MyMarginalNote\plusone
\inmargin
{\MyMarginalNote:
\doifsomething{#1}
{\expanded{\textreference[#1]{\MyMarginalNote}}}%
#2}%
\high{\MyMarginalNote
\increment\MyMarginalNote
\high{\MyMarginalNote}%
\inmargin
{\MyMarginalNote:
\doifsomething{#1}
{\expanded{\textreference[#1]{\MyMarginalNote}}}#2}}
Now the explaination:
\newcounter\MyMarginalNote
Defines a new counter called MyMarginalNode. Hans did not use this because
On Fri, 6 Jun 2008, Hans Hagen wrote:
\def\domnote[#1]#2%
{\doglobal\increment\MyMarginalNote\plusone
\inmargin
{\MyMarginalNote:
\doifsomething{#1}
{\expanded{\textreference[#1]{\MyMarginalNote}}}%
#2}%
\high{\MyMarginalNote}}
There should
}
\tab{text} text
# \tbox
\tex{text}
\textreference[reference]{text}
\textrule[top|bottom]{text}
\textvariable[name]
\thinrule
\thinrules[settings]
# \tightlayer
\title[references]{text}
# \to
\tooltip[left|right|middle]{text}{text}
\translate[name=text]
\typ{text}
\type{text}
\typebuffer[name
}%
{\headnumber[chapter]}%
{\headnumber[section]}%
}
\def\paragraphMark[#1]
{\expanded{\textreference[#1]{\presentheadnumber/\getnumber[paragraphNumber]}}}
\define\getParagraphNumber
{\incrementnumber[paragraphNumber]%
\inothermargin{\color[grey]%
{\tfx\getnumber[paragraphNumber
Wolfgang Schuster wrote:
\def\MyMark[#1]%
{\expanded{\textreference[#1]{Para. \currentheadnumber /
{\getnumber[number]}}}
Thanks, it works with the expanded...
___
If your question is of interest
]}
{\sym{\cap{#2}}\textreference[#1]{\cap{#2
\def\bibref[#1]#2{\doifemptyelse{#2}
{[\in[#1]]}
{[\in[#1], #2]}}
\protect
\stopmodule
\endinput
---how to use:
\usemodule[biblist]
\starttext
\section{hamha}
asdfklsj fk~\bibref[keykeykey]{}
\section
]
{\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}}
\definestartstop[MyPara]
[before=
{\blank[medium]\incrementnumber[number]%
\inothermargin{\getnumber[number]~}},
after={\blank[medium]}]
\starttext
\section
\startMyPara
blabla blabla blabla blabla
,subsubsection
[after={\resetnumber[number]}]
\def\MyMark[#1]
{\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}}
\def\MyMark[#1]%
{\expanded{\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}}}
\definestartstop[MyPara]
[before=
{\blank[medium
[bibliography]
\setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=]
\setupitemgroup[bibliography][1][n,12*broad]
%\setupitemgroup[bibliography][1][n
\currentmoduleparameter{itemspace}*broad]
\def\bibitem[#1]#2{\doifemptyelse{#2}
{\item[#1]}
{\sym{\cap{#2}}\textreference
]
There is also \textreference and \reference. From core-ref.tex
%D This module deals with referencing. In \CONTEXT\ referencing
%D is one of the core features, although at a first glance
%D probably nobody will notice. This is good, because
%D referencing should be as hidden as possible.
%D
%D In paper
{\textreference[line#1]{\noexpand\conum{#1
\def\refline#1{\in{line }[line#1]}
\dorecurse{99}{\markline{\recurselevel}, }
\dorecurse{99}{\refline{\recurselevel}, }
Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl
should I do to make them as anchors, so that it can be
cross-referenced (I mean, one can click on a hot spot that jump to the
number in the verbatim text).
Like this maybe:
\def\markline#1%
{\conum{#1}%
\expanded{\textreference[line#1]{\noexpand\conum{#1
\def\refline#1
, so you
need something like this:
\defineXMLargument
[title]
[\XMLpar{section}{label}{}]
{\section[\XMLpar{section}{label}{}]}
2. \textreference *creates* a reference instead of referring
to one, so you need
\defineXMLargument
[ref]
{\in[\XMLpar{ref
:
\defineXMLenvironment
[section]
{
\defineXMLargument
[title]
[\XMLpar{section}{label}{}]
wrong argument, should be [name=]
{\section}
\defineXMLenvironment
[content]
{}{}
}
{}
\defineXMLargument
[ref]
{\textreference[\XMLpar{ref}{name}{}]}
wrong command
}
\defineXMLenvironment
[content]
{}{}
}
{}
\defineXMLargument
[ref]
{\textreference[\XMLpar{ref}{name}{}]}
wrong command \textreference should be \in
I would appreciate any insight into my folly ...
Thanks, Joh
\defineXMLenvironment
[section]
{\setups{section:define
]
{
\defineXMLargument
[title]
[\XMLpar{section}{label}{}]
{\section}
\defineXMLenvironment
[content]
{}{}
}
{}
\defineXMLargument
[ref]
{\textreference[\XMLpar{ref}{name}{}]}
I would appreciate any insight into my folly ...
Thanks, Joh
Matthias Weber, April 13:
\pagereference[name] or \textreference[name]{text}
to place a label, and \at{page}[name] to refer to the page number.
Actually, it turns out that \reference worked best, but thanks for
pointing them out for me. I was actually using them, only in the wrong
way...I
Use
\pagereference[name] or \textreference[name]{text}
to place a label, and \at{page}[name] to refer to the page number.
Details are in core-ref.tex
Matthias
On Apr 13, 2005, at 4:34 PM, Nikolai Weibull wrote:
I have tried figuring out how to define a reference point at any given
location
%
\textreference[#1:t:\MNamCounter]{#2}%
\doifreferencefoundelse{#1:t:\MNamCounter}
{\doifundefined{#1:f:\currentrealreference}%
{\setxvalue{#1:f:\currentrealreference}%
{\noexpand\in[#1:t:\MNamCounter]}}
\setxvalue{#1:l:\currentrealreference}%
{\noexpand\in[#1
72 matches
Mail list logo